<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.3.1/echarts.js"></script>
  <style>
    div {
      display: inline-block;
    }
    #charts1 {
      width: 400px;
      height: 400px;
      border: 1px solid #000;
    }
    #charts2 {
      width: 400px;
      height: 400px;
      border: 1px solid #000;
    }
    
  </style>
</head>
<body>
    <div id="charts1"></div>
    <div id="charts2"></div>
</body>
<script>
  var div1= document.querySelector('#charts1')
  var myChart1 = echarts.init(div1)
  myChart1.setOption({
    title:{
       text:'你好'
    },
    xAxis:{
     type: 'category'
    },
    yAxis:{      
    },
    series:[
      { 
        type:'scatter',
        data:[
          [35,29],
          [75,25],
          [25,49],
          [65,25],
          [67,29],
          [85,65],
          [55,21],
        ]
      }
    ]
  });
  var div2= document.querySelector('#charts2')
  var myChart2 = echarts.init(div2)
  myChart2.setOption({
    title:{
       text:'你好'
    },
    xAxis:{
     type: 'category',
     data:['1','2','3','4','5','6','7']
    },
    yAxis:[
      {
        axisLine:{
          show:true
        },
        axisTick:{
          show:true
        }
      },
      {
        axisLine:{
          show:true
        },
        axisTick:{
          show:true
        }
      },
    ],
    series:[
      { 
        yAxisIndex:0,
        type:'bar',
        data:[
         30,50,70,62,52,62,18
        ]
      },
      { 
        yAxisIndex:1,
        type:'line',
        data:[
         436,486,822,283,243,752,159
        ]
      }
    ]
  });
</script>
</html>